<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理</title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">

    <!-- Styles -->
    <link href="__ADMIN_OTHER__/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/themify-icons.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/mmc-chat.css" rel="stylesheet" />
    <link href="__ADMIN_CSS__/lib/sidebar.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/nixon.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/style.css" rel="stylesheet">
</head>

<body>
{include file="public/menu"}
<!-- /# sidebar -->
{include file="public/header"}
<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">

                        </div>
                    </div>
                </div><!-- /# column -->
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a>前台用户</a></li>
                                <li class="active">列表</li>
                            </ol>
                        </div>
                    </div>
                </div><!-- /# column -->
            </div><!-- /# row -->
            <div class="card alert">
                <div class="card-header">
                    <h4>搜索</h4>
                </div>
                <div class="card-body">
                    <div class="basic-form">
                        <form>
                            <div class="form-group">
<!--                                <p class="text-muted m-b-15 f-s-12">Use the input classes on an <code>input-default</code> for Default input.</p>-->
                                <div class="input-group input-group-default">
                                    <span class="input-group-btn">
                                        <button class="btn btn-primary" type="submit">
                                            <i class="ti-search"></i>
                                        </button>
                                    </span>
                                    <input type="text" placeholder="Search Default" name="Search" class="form-control">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="card alert">
                    <div class="card-header">
                        <h4>用户列表</h4>
                    </div>
                    <div class="card-body">
                        <table class="table table-responsive table-bordered">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>手机号</th>
                                <th>昵称</th>
                                <th>头像</th>
                                <th>身份</th>
                                <th>等级</th>
                                <th>会员到期时间</th>
                                <th>提成</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name='rs' id='vo'}
                            <tr>
                                <td scope="row">{$vo.id}</td>
                                <td scope="row">{$vo.phone}</td>
                                <td scope="row">{$vo.nike_name}</td>
                                <td scope="row"><img src="{$vo.avatar_url}" style="width: 100px;"></td>
                                <td scope="row">{$vo.identity}</td>
                                <td scope="row">{$vo.lv}</td>
                                <td scope="row">
                                    {if condition="$vo.lv_end_time eq 0"}

                                    {else /}
                                    {$vo.lv_end_time | date="Y-m-d H:i:s",###}
                                    {/if}
                                </td>
                                <td scope="row">{$vo.royalty}</td>
                                <td>
                                    <a href="/admin/userInfo?user_id={$vo.id}">
                                        <button type="button" class="btn btn-info m-b-10 m-l-5">详情</button>
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {$rs->render()}
                    </div>
                </div>
            </div>
        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="__ADMIN_JS__/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="__ADMIN_JS__/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="__ADMIN_JS__/lib/sidebar.js"></script><!-- sidebar -->
<script src="__ADMIN_JS__/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="__ADMIN_JS__/lib/mmc-common.js"></script>
<script src="__ADMIN_JS__/lib/mmc-chat.js"></script>
</body>

</html>